package artist.graphic.cn.UI;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.Toast;

import artist.graphic.cn.R;

/**
 *
 * Created by wanghuanlong on 2018/1/18.
 */

public class AboutUsActivity extends AppCompatActivity implements View.OnClickListener{

    LinearLayout ll_back,ll_update,ll_pingfen,ll_declaration,ll_suggest;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_about_us);

        ll_back= (LinearLayout) findViewById(R.id.ll_back);
        ll_update= (LinearLayout) findViewById(R.id.ll_update);
        ll_pingfen= (LinearLayout) findViewById(R.id.ll_pingfen);
        ll_declaration= (LinearLayout) findViewById(R.id.ll_declaration);
        ll_suggest= (LinearLayout) findViewById(R.id.ll_suggest);
        ll_back.setOnClickListener(this);
        ll_update.setOnClickListener(this);
        ll_pingfen.setOnClickListener(this);
        ll_declaration.setOnClickListener(this);
        ll_suggest.setOnClickListener(this);

    }

    @Override
    public void onClick(View v) {
        switch (v.getId()){

            case R.id.ll_back :
              finish();
                break;
            case R.id.ll_update :
                Toast.makeText(this,"当前已经是最新版本",Toast.LENGTH_SHORT).show();
                break;
            case R.id.ll_pingfen :
                Toast.makeText(this,"该应用还未上线，请待上线后再评分",Toast.LENGTH_SHORT).show();
                break;

            case R.id.ll_declaration :
                Toast.makeText(this,"该功能还未开发，敬请期待",Toast.LENGTH_SHORT).show();
                break;

            case R.id.ll_suggest :
                Toast.makeText(this,"该功能还未开发，敬请期待",Toast.LENGTH_SHORT).show();
                break;

        }
    }
}
